﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011B7 RID: 4535
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SocialEventServerCache : IMessage<SocialEventServerCache>, IMessage, IEquatable<SocialEventServerCache>, IDeepCloneable<SocialEventServerCache>, IBufferMessage
	{
		// Token: 0x17003965 RID: 14693
		// (get) Token: 0x0600CB08 RID: 51976 RVA: 0x002232FD File Offset: 0x002214FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SocialEventServerCache> Parser
		{
			get
			{
				return SocialEventServerCache._parser;
			}
		}

		// Token: 0x17003966 RID: 14694
		// (get) Token: 0x0600CB09 RID: 51977 RVA: 0x00223304 File Offset: 0x00221504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SocialEventServerCacheReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003967 RID: 14695
		// (get) Token: 0x0600CB0A RID: 51978 RVA: 0x00223316 File Offset: 0x00221516
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SocialEventServerCache.Descriptor;
			}
		}

		// Token: 0x0600CB0B RID: 51979 RVA: 0x0022331D File Offset: 0x0022151D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SocialEventServerCache()
		{
		}

		// Token: 0x0600CB0C RID: 51980 RVA: 0x00223328 File Offset: 0x00221528
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SocialEventServerCache(SocialEventServerCache other) : this()
		{
			this.id_ = other.id_;
			this.subCoin_ = other.subCoin_;
			this.srcUid_ = other.srcUid_;
			this.addCoin_ = other.addCoin_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CB0D RID: 51981 RVA: 0x0022337C File Offset: 0x0022157C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SocialEventServerCache Clone()
		{
			return new SocialEventServerCache(this);
		}

		// Token: 0x17003968 RID: 14696
		// (get) Token: 0x0600CB0E RID: 51982 RVA: 0x00223384 File Offset: 0x00221584
		// (set) Token: 0x0600CB0F RID: 51983 RVA: 0x0022338C File Offset: 0x0022158C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17003969 RID: 14697
		// (get) Token: 0x0600CB10 RID: 51984 RVA: 0x00223395 File Offset: 0x00221595
		// (set) Token: 0x0600CB11 RID: 51985 RVA: 0x0022339D File Offset: 0x0022159D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SubCoin
		{
			get
			{
				return this.subCoin_;
			}
			set
			{
				this.subCoin_ = value;
			}
		}

		// Token: 0x1700396A RID: 14698
		// (get) Token: 0x0600CB12 RID: 51986 RVA: 0x002233A6 File Offset: 0x002215A6
		// (set) Token: 0x0600CB13 RID: 51987 RVA: 0x002233AE File Offset: 0x002215AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SrcUid
		{
			get
			{
				return this.srcUid_;
			}
			set
			{
				this.srcUid_ = value;
			}
		}

		// Token: 0x1700396B RID: 14699
		// (get) Token: 0x0600CB14 RID: 51988 RVA: 0x002233B7 File Offset: 0x002215B7
		// (set) Token: 0x0600CB15 RID: 51989 RVA: 0x002233BF File Offset: 0x002215BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AddCoin
		{
			get
			{
				return this.addCoin_;
			}
			set
			{
				this.addCoin_ = value;
			}
		}

		// Token: 0x0600CB16 RID: 51990 RVA: 0x002233C8 File Offset: 0x002215C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SocialEventServerCache);
		}

		// Token: 0x0600CB17 RID: 51991 RVA: 0x002233D8 File Offset: 0x002215D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SocialEventServerCache other)
		{
			return other != null && (other == this || (this.Id == other.Id && this.SubCoin == other.SubCoin && this.SrcUid == other.SrcUid && this.AddCoin == other.AddCoin && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CB18 RID: 51992 RVA: 0x00223444 File Offset: 0x00221644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.SubCoin != 0U)
			{
				num ^= this.SubCoin.GetHashCode();
			}
			if (this.SrcUid != 0U)
			{
				num ^= this.SrcUid.GetHashCode();
			}
			if (this.AddCoin != 0U)
			{
				num ^= this.AddCoin.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CB19 RID: 51993 RVA: 0x002234CE File Offset: 0x002216CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CB1A RID: 51994 RVA: 0x002234D6 File Offset: 0x002216D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CB1B RID: 51995 RVA: 0x002234E0 File Offset: 0x002216E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.SubCoin != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.SubCoin);
			}
			if (this.SrcUid != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.SrcUid);
			}
			if (this.AddCoin != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.AddCoin);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CB1C RID: 51996 RVA: 0x00223574 File Offset: 0x00221774
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.SubCoin != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SubCoin);
			}
			if (this.SrcUid != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SrcUid);
			}
			if (this.AddCoin != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AddCoin);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CB1D RID: 51997 RVA: 0x002235FC File Offset: 0x002217FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SocialEventServerCache other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.SubCoin != 0U)
			{
				this.SubCoin = other.SubCoin;
			}
			if (other.SrcUid != 0U)
			{
				this.SrcUid = other.SrcUid;
			}
			if (other.AddCoin != 0U)
			{
				this.AddCoin = other.AddCoin;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CB1E RID: 51998 RVA: 0x00223674 File Offset: 0x00221874
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CB1F RID: 51999 RVA: 0x00223680 File Offset: 0x00221880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 96U)
				{
					if (num == 32U)
					{
						this.SubCoin = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.SrcUid = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.AddCoin = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Id = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005180 RID: 20864
		private static readonly MessageParser<SocialEventServerCache> _parser = new MessageParser<SocialEventServerCache>(() => new SocialEventServerCache());

		// Token: 0x04005181 RID: 20865
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005182 RID: 20866
		public const int IdFieldNumber = 14;

		// Token: 0x04005183 RID: 20867
		private uint id_;

		// Token: 0x04005184 RID: 20868
		public const int SubCoinFieldNumber = 4;

		// Token: 0x04005185 RID: 20869
		private uint subCoin_;

		// Token: 0x04005186 RID: 20870
		public const int SrcUidFieldNumber = 12;

		// Token: 0x04005187 RID: 20871
		private uint srcUid_;

		// Token: 0x04005188 RID: 20872
		public const int AddCoinFieldNumber = 13;

		// Token: 0x04005189 RID: 20873
		private uint addCoin_;
	}
}
